package service;

import java.io.InputStream;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import entity.User;

public interface UserService {
	public boolean checkEmail(String email) throws Exception;
	public boolean checkEmailCode(User user,String code,Map<String, Object> session) throws Exception;
	public String checkLogin(String name,String password,Map<String, Object> session,HttpServletRequest httpReq)throws Exception;
	public boolean checkNumber(String number,Map<String,Object> session);
	public void register(User user,HttpServletRequest httpReq) throws Exception;
	public void SessionOut(Map<String,Object> session);
	public InputStream checkCode(Map<String,Object> session)throws Exception;
}
